/* 全局入口 */

import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

// Cesium
import './style/Q3D_S_Cesium.css'

// Element Plus
import ElementPlus from "element-plus";
// Element Icons
import * as Icons from "@element-plus/icons-vue";
// Vue Router
import router from "./router/Q3D_Router_Index";
// i18n
import i18n from "./lang/Q3D_Lang_Index";
// Pinia Store
import pinia from "./store/Q3D_Store_Index";

const app = createApp(App);

// 注册 Element Icons 组件
// Object.keys(Icons).forEach(key => {
//     app.component(key, Icons[key as keyof typeof Icons]);
// });

// app.use(router).use(i18n).use(pinia).use(ElementPlus).mount("#app");
app.use(router).use(i18n).use(pinia).mount("#app");
